<%-- 
    Document   : ProsesLogin
    Created on : 17 Nov 12, 10:31:17
    Author     : aldya
--%>

 <%@ page session="true" %>
<jsp:useBean id="loginBean" scope="page" class="Model1.LoginAdmin" />

<%
            if (loginBean.login(request.getParameter("userName"),
                    request.getParameter("password"))) {
                request.getRequestDispatcher("formUtamaAdmin.jsp").forward(request, response);
            } else 
            {
                response.sendRedirect("formLoginAdmin.jsp?error=banget?nama-atau-kata-sandi-salah");
            }
%>
